import 'package:flutter/material.dart';

class UserInfo {
  String nickname;
  int level;

  UserInfo(this.nickname, this.level);
}

class UserProvider extends ChangeNotifier {
  UserInfo _userInfo = UserInfo("liuyang", 18);

  set userInfo(UserInfo info) {
    _userInfo = info;

    notifyListeners();
  }

  get userInfo {
    return _userInfo;
  }
}
